package com.ssm.forum.dao.model.content;

import com.jee.ssm.common.core.base.BaseModel;
import com.ssm.forum.dao.model.assortment.Assortment;
import com.ssm.forum.dao.model.residence.Residence;
import com.ssm.forum.dao.model.user.User;
import com.ssm.icc.dao.model.estate.Estate;
import com.ssm.upms.dao.model.Admin;

import java.util.Date;

/**
 * 
 * 表名 d_content
 * @author GaoXiang
 * @version 1.0
 * Create time 2017/06/05
 */
public class Content extends BaseModel {
    /**
     * 编号
     * 表字段 : d_content.id
     * Create time 2017/06/05
     */
    private String id;

    /**
     * 分类ID
     * 表字段 : d_content.assort_id
     * Create time 2017/06/05
     */
    private String assortId;

    /**
     * 标题
     * 表字段 : d_content.title
     * Create time 2017/06/05
     */
    private String title;

    /**
     * 创建时间
     * 表字段 : d_content.set_time
     * Create time 2017/06/05
     */
    private Date setTime;

    /**
     * 作者
     * 表字段 : d_content.author
     * Create time 2017/06/05
     */
    private String userId;

    /**
     * 备注
     * 表字段 : d_content.intro
     * Create time 2017/06/05
     */
    private String intro;

    /**
     * 内容
     * 表字段 : d_content.content
     * Create time 2017/06/05
     */
    private String content;

    private Assortment assortment;

    private User user;

    private  String authorType;
    private Residence residence;
    private  String residenceId;

    private Admin admin;

  /*  private  Estate estate;*/

    private  Residence re;

    /**
     * 构造方法
     */
    public Content(String id, String assortId, String title, Date setTime, String userId, String intro, String content) {
        this.id = id;
        this.assortId = assortId;
        this.title = title;
        this.setTime = setTime;
        this.userId = userId;
        this.intro = intro;
        this.content = content;
    }

    /**
     * 构造方法
     */
    public Content() {
        super();
    }

    /**
     * 编号
     * @return id 编号
     */
    public String getId() {
        return id;
    }

    /**
     * 编号
     * @param id 编号
     */
    public void setId(String id) {
        this.id = id;
    }

    /**
     * 分类ID
     * @return assort_id 分类ID
     */
    public String getAssortId() {
        return assortId;
    }

    /**
     * 分类ID
     * @param assortId 分类ID
     */
    public void setAssortId(String assortId) {
        this.assortId = assortId;
    }

    /**
     * 标题
     * @return title 标题
     */
    public String getTitle() {
        return title;
    }

    /**
     * 标题
     * @param title 标题
     */
    public void setTitle(String title) {
        this.title = title;
    }

    /**
     * 创建时间
     * @return set_time 创建时间
     */
    public Date getSetTime() {
        return setTime;
    }

    /**
     * 创建时间
     * @param setTime 创建时间
     */
    public void setSetTime(Date setTime) {
        this.setTime = setTime;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    /**
     * 备注
     * @return intro 备注
     */
    public String getIntro() {
        return intro;
    }

    /**
     * 备注
     * @param intro 备注
     */
    public void setIntro(String intro) {
        this.intro = intro;
    }

    /**
     * 内容
     * @return content 内容
     */
    public String getContent() {
        return content;
    }



    /**
     * 内容
     * @param content 内容
     */
    public void setContent(String content) {
        this.content = content;
    }

    public Assortment getAssortment() {
        return assortment;
    }

    public void setAssortment(Assortment assortment) {
        this.assortment = assortment;
    }


    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public String getAuthorType() {
        return authorType;
    }

    public void setAuthorType(String authorType) {
        this.authorType = authorType;
    }



    public Residence getResidence() {
        return residence;
    }

    public void setResidence(Residence residence) {
        this.residence = residence;
    }

    public String getResidenceId() {
        return residenceId;
    }

    public void setResidenceId(String residenceId) {
        this.residenceId = residenceId;
    }


    public Admin getAdmin() {
        return admin;
    }

    public void setAdmin(Admin admin) {
        this.admin = admin;
    }

/*    public Estate getEstate() {
        return estate;
    }

    public void setEstate(Estate estate) {
        this.estate = estate;
    }*/

    public Residence getRe() {
        return re;
    }

    public void setRe(Residence re) {
        this.re = re;
    }
}